package com.lennon.oauth.message;

import org.springframework.ui.ModelMap;

public class ModelMapUtil {

	public final static String MESSAGE = "message";
	
	public static void setMessage(ModelMap modelMap, ResultMessage resultMessage) {
		modelMap.put(MESSAGE, resultMessage.getValue());
	}
	
	public static void setMessage(ModelMap modelMap, String message) {
		modelMap.put(MESSAGE, message);
	}
	
	public static void setMessage(ModelMap modelMap, String key, String message) {
		modelMap.put(key, message);
	}
	
}
